<img class="thumb" th:src="@{show-avatar-id?width=100&amp;height=100&amp;(id=${userId})}" />

<style>
img{margin:8px auto; display:block;width:100px; height:100px;}
</style>